package com.zyd.blog.persistence.mapper;

import com.zyd.blog.persistence.beans.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liusongqi
 * @since 2020-02-11
 */
@Repository
@Component
public interface MyParticipateMapper extends BaseMapper<MyParticipate> {
    Integer deleteComment(@Param(value = "articleId") String articleId,@Param(value = "userId") String userId);

    List<CenterNew> relationJZ(String userId,String state,int page,int count);

    List<SoftNew> relationRZ(String userId, String state,int page,int count);

    List<FineArtNew> relationYS(String userId, String state,int page,int count);

    Integer JZnum(String state,String userId);
    Integer RZnum(String state,String userId);
    Integer JPnum(String state,String userId);

    Integer deleteArticle(String id);

    List<CenterNewComment> relationJZComment(String userId, String state, int page, int count);

    List<SoftNewComment> relationRZComment(String userId, String state,int page,int count);

    List<FineArtNewComment> relationYSComment(String userId, String state,int page,int count);

    Integer articleCount(String id,String category);

    Integer fenxaing(String id);

    Integer deleteFenxaing(String id);

}
